/**
 * Created by lsx on 2017/5/8.
 */

define(['jquery','mui'], function ($,Mui) {
    document.querySelectorAll('.reg-btn')[0].addEventListener('tap', function (e) {
        $.ajax({
            type: "POST",
            url:register_submit_url,
            data:$('#reg-form').serialize(),// 要提交的表单
            success: function(res) {
                Mui.alert(res.message);
                if(res.success){
                    setTimeout("window.location.href=result_url",1500)
                }

            }
        });

    })
});